package hero.mps.web.class_course.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("class_course")
public class ClassCourse {
    @TableId(type = IdType.AUTO)
    /**
     * 主键
     */
    private Integer classCourseId;

    /**
     * 课程id
     */
    private Integer courseId;

    /**
     * 班级id
     */
    private Integer classId;

    /**
     * 开课年份
     */
    private String courseYear;

    /**
     * 0春季学期1秋季学期
     */
    private String type;

    @TableField(exist = false)
    private String courseName;

    @TableField(exist = false)
    private String className;

    @TableField(exist = false)
    private String classYear;


    /**
     * 教师id
     */
    private Integer teacherId;
}
